<?php
/* 
 * Generates the home page of the admin dashboard
 */

/**
 * Description of dashboard
 *
 * @author ChristianNotebook
 */


class Dashboard extends CI_Controller
{
    function Dashboard()
    {
        parent::__construct();

        session_start();
        
        if ($this->session->userdata('userid') < 1)
        {
            redirect('/welcome/index', 'refresh');
        }

    }

    // load the admin_home view and send the relavant data to it.
    function index()
    {
        $data['title'] = "Fully Jacked - Dashboard Home";
        $data['main_content'] = 'admin/admin_home';
        $this->load->vars($data);
        $this->load->view('admin/dashboard');
    }
    //put your code here
}
?>
